package com.crealth.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSONObject;
import com.crealth.utils.Utils;

public class LoanAmountCalculatedModel implements Serializable {
	private static final long serialVersionUID = 3205L;
	
	private int id;
	private String bankName;
	private String property;
	private String limitTime;
	private int monthpayMultiple;
	private int incomeMultiple;
	private int sxxebs;
	private int sxxeje;
	private int maxLoan;
	private String hj;
	private int yfSxxeje;
	private int yfMaxLoan;
	private int wfMaxLoan;
	private String policyCompanyNames;	
	private int sbBase;
	private int orderNum;
	
	public LoanAmountCalculatedModel() {
		bankName = "";
		property = "";
		limitTime = "";
		hj = "";
		policyCompanyNames = "";
		orderNum = 0;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}	
	public String getProperty() {
		return property;
	}
	public void setProperty(String property) {
		this.property = property;
	}
	public String getLimitTime() {
		return limitTime;
	}
	public void setLimitTime(String limitTime) {
		this.limitTime = limitTime;
	}
	public int getMonthpayMultiple() {
		return monthpayMultiple;
	}
	public void setMonthpayMultiple(int monthpayMultiple) {
		this.monthpayMultiple = monthpayMultiple;
	}
	public int getIncomeMultiple() {
		return incomeMultiple;
	}
	public void setIncomeMultiple(int incomeMultiple) {
		this.incomeMultiple = incomeMultiple;
	}
	public int getSxxebs() {
		return sxxebs;
	}
	public void setSxxebs(int sxxebs) {
		this.sxxebs = sxxebs;
	}
	public int getSxxeje() {
		return sxxeje;
	}
	public void setSxxeje(int sxxeje) {
		this.sxxeje = sxxeje;
	}
	public int getMaxLoan() {
		return maxLoan;
	}
	public void setMaxLoan(int maxLoan) {
		this.maxLoan = maxLoan;
	}
	public String getHj() {
		return hj;
	}
	public void setHj(String hj) {
		this.hj = hj;
	}
	public int getYfSxxeje() {
		return yfSxxeje;
	}
	public void setYfSxxeje(int yfSxxeje) {
		this.yfSxxeje = yfSxxeje;
	}
	public int getYfMaxLoan() {
		return yfMaxLoan;
	}
	public void setYfMaxLoan(int yfMaxLoan) {
		this.yfMaxLoan = yfMaxLoan;
	}
	public int getWfMaxLoan() {
		return wfMaxLoan;
	}
	public void setWfMaxLoan(int wfMaxLoan) {
		this.wfMaxLoan = wfMaxLoan;
	}
	public String getPolicyCompanyNames() {
		return policyCompanyNames;
	}
	public void setPolicyCompanyNames(String policyCompanyNames) {
		this.policyCompanyNames = policyCompanyNames;
	}
	public int getSbBase() {
		return sbBase;
	}
	public void setSbBase(int sbBase) {
		this.sbBase = sbBase;
	}	
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public JSONObject toJSONObject() {
		JSONObject jsonObj = new JSONObject();
		jsonObj.put("id", id);		
		jsonObj.put("bankName", bankName);
		jsonObj.put("property", property);
		jsonObj.put("limitTime", limitTime);
		jsonObj.put("monthpayMultiple", monthpayMultiple);
		jsonObj.put("incomeMultiple", incomeMultiple);
		jsonObj.put("sxxebs", sxxebs);
		jsonObj.put("sxxeje", sxxeje);
		jsonObj.put("maxLoan", maxLoan);
		jsonObj.put("hj", hj);
		jsonObj.put("yfSxxeje", yfSxxeje);
		jsonObj.put("yfMaxLoan", yfMaxLoan);
		jsonObj.put("wfMaxLoan", wfMaxLoan);
		jsonObj.put("policyCompanyNames", policyCompanyNames);
		jsonObj.put("sbBase", sbBase);
		jsonObj.put("orderNum", orderNum);
		
		return jsonObj;
	}
	
	public void parseFromJson(JSONObject json) {
		bankName = Utils.getJsonString(json, "bankName");
		property = Utils.getJsonString(json, "property");
		limitTime = Utils.getJsonString(json, "limitTime");
		hj = Utils.getJsonString(json, "hj");
		policyCompanyNames = Utils.getJsonString(json, "policyCompanyNames");
		id = Utils.getJsonIntValue(json, "id", 0);
		monthpayMultiple = Utils.getJsonIntValue(json, "monthpayMultiple", 0);
		incomeMultiple = Utils.getJsonIntValue(json, "incomeMultiple", 0);
		sxxebs = Utils.getJsonIntValue(json, "sxxebs", 0);
		sxxeje = Utils.getJsonIntValue(json, "sxxeje", 0);
		maxLoan = Utils.getJsonIntValue(json, "maxLoan", 0);
		yfSxxeje = Utils.getJsonIntValue(json, "yfSxxeje", 0);
		yfMaxLoan = Utils.getJsonIntValue(json, "yfMaxLoan", 0);
		wfMaxLoan = Utils.getJsonIntValue(json, "wfMaxLoan", 0);
		sbBase = Utils.getJsonIntValue(json, "sbBase", 0);
		orderNum = Utils.getJsonIntValue(json, "orderNum", 0);
	}
	

}
